//
// Created by jiangpenghui on 2023/4/12.
//


#include <iostream>
#include "X_template.h"
#include "./container_template/comtainer_template.h"

using namespace std;

int main() {
    bitset<10> bs;
    bs.set(1);
    bs.set(5);
    cout << bs << endl;

    string str = bitsetToString<char>(bs);

    cout << str << endl;


    vector<Gromit *> dogs;
    for (int i = 0; i < 5; ++i)
        dogs.push_back(new Gromit(i));
    // &Gromit::speak 取址调用
    apply(dogs, &Gromit::speak, 1);
}